home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue.arc / TVSOUND.C < prev    next >
C/C++ Source or Header  |  1990-01-09  |  974b  |  27 lines

  1. /*=======================================================*/
  2. /*  TVSOUND.C                                            */
  3. /*                                                       */
  4. /*  (c) Copyright 1988 Ralf Brown  All Rights Reserved   */
  5. /*  May be freely copied for noncommercial use, so long  */
  6. /*  as this copyright notice remains intact, and any     */
  7. /*  changes are marked in the comment blocks preceding   */
  8. /*  functions.                                           */
  9. /*=======================================================*/
  10.  
  11. #include "tvapi.h"
  12.  
  13. /*======================================================*/
  14. /* TVsound--generate a tone for given number of ticks   */
  15. /*   Ralf Brown 4/2/88                                  */
  16. /*======================================================*/
  17.  
  18. void pascal TVsound(int freq, int duration)
  19. {
  20.    _BX = freq ;
  21.    _CX = duration ;
  22.    _AX = 0x1019 ;
  23.    geninterrupt(0x15) ;
  24. }
  25.  
  26. /* End of TVSOUND.C */
  27.